package lumingweihua.future.cn.lumingweihua.home.cheyuan;

import android.text.TextUtils;
import android.view.View;

import lumingweihua.future.cn.baselibgxh.base.BaseActivity;
import lumingweihua.future.cn.baselibgxh.utils.Constant;
import lumingweihua.future.cn.lumingweihua.R;

/**
 * Created by Administrator on 2018/4/14.
 */

public class UpdateNumActivity extends BaseActivity {
    @Override
    protected void initView() {
        setContentView(R.layout.activity_update_name);
        initTitleBar("", Constant.DEFAULT_LEFT_BACK,null);
        findViewById(R.id.bt_ok).setOnClickListener(this);;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void processClick(View v) {
        switch (v.getId()) {
            case R.id.bt_ok:
                String num = findTextView(R.id.et_name).getText().toString();
                if(TextUtils.isEmpty(num)){
                    showToast("请输入抢单数量");
                    return;
                }
                setResult(RESULT_OK,getIntent().putExtra("num",Float.valueOf(num)));
                finish();
                break;

            default:
                break;
        }
    }
}
